import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.itmayiedu.entity.UserEntity;
import com.itmayiedu02.service.UserService;

/**
 * 测试编程性事务的以AOP形式拦截（全局手动事务）
 * @author zhang
 *
 */
public class SpringTest002 {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("spring.xml");
		UserService userService = (UserService) app.getBean("userService");
			userService.add02();
			
	}

}
